package com.luckmgr.dto;

import java.util.HashMap;
import java.util.Map;

import com.luckmgr.entity.db.Activity;
import com.luckmgr.entity.db.ActivityLevel;
import com.luckmgr.entity.db.Prize;

public class ActivityDTO {
	private Activity activity;
	private Map<Integer, Prize> prizes = new HashMap<Integer, Prize>();
	private Map<Integer, ActivityLevel> acLevels = new HashMap<Integer, ActivityLevel>();
	private Map<String, RecordDTO> records = new HashMap<String, RecordDTO>();
	private Prize nullPrize = null;;
	
	public Prize getnullPrize(){
		if(null == nullPrize){
			nullPrize = new Prize();
			nullPrize.setId(-1);
			nullPrize.setActivityId(activity.getId());
			nullPrize.setActivityName(activity.getName());
			nullPrize.setPrizeIndex(1);
			nullPrize.setPrizeName("未中奖");
			nullPrize.setConsumeNum(1);
		}
		
		return nullPrize;
		
	}
	
	
	
	public Activity getActivity() {
		return activity;
	}
	public void setActivity(Activity activity) {
		this.activity = activity;
	}
	public Map<Integer, Prize> getPrizes() {
		return prizes;
	}
	public void setPrizes(Map<Integer, Prize> prizes) {
		this.prizes = prizes;
	}
	public Map<Integer, ActivityLevel> getAcLevels() {
		return acLevels;
	}
	public void setAcLevels(Map<Integer, ActivityLevel> acLevels) {
		this.acLevels = acLevels;
	}
	public Map<String, RecordDTO> getRecords() {
		return records;
	}
	public void setRecords(Map<String, RecordDTO> records) {
		this.records = records;
	}
	
	
	
	
}
